package com.example.backend.service.mysql.order.impl;

import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.backend.dto.request.PageUserDto;
import com.example.backend.entitly.mysql.order.Brands;
import com.example.backend.mapper.mysql.order.BrandsMapper;
import com.example.backend.service.mysql.order.BrandsService;
import org.springframework.stereotype.Service;

/**
 * @author 1
 * @description 针对表【brands(品牌表)】的数据库操作Service实现
 * @createDate 2025-06-05 16:11:25
 */
@Service
public class BrandsServiceImpl extends ServiceImpl<BrandsMapper, Brands>
        implements BrandsService {

    @Override
    public Page<Brands> pageGetAll(PageUserDto pageUserDto) {
        Page<Brands> page = new Page<>(pageUserDto.getPageNum(), pageUserDto.getPageSize());
        return new LambdaQueryChainWrapper<>(getBaseMapper())
                .page(page);
    }
}




